package com.ruoyi.wms.domain.bo.employee;

import com.ruoyi.wms.domain.entity.employee.EmployeePointsDetails;
import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import com.ruoyi.common.mybatis.core.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;
import io.github.linpeilie.annotations.AutoMapper;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 员工积分明细业务对象 employee_points_details
 *
 * @author 邓滔滔
 * @date 2024-12-09
 */

@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = EmployeePointsDetails.class, reverseConvertGenerate = false)
public class EmployeePointsDetailsBo extends BaseEntity {

    /**
     * 员工
     */
    @NotNull(message = "员工不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long employeeId;

    /**
     * 积分变动值
     */
    @NotNull(message = "积分变动值不能为空", groups = { AddGroup.class, EditGroup.class })
    private BigDecimal pointsChange;

    /**
     * 原因
     */
    private String reason;

    /**
     * 总积分
     */
    private BigDecimal point;

    /**
     * 变动日期
     */
    @NotNull(message = "变动日期不能为空", groups = { AddGroup.class, EditGroup.class })
    private Date changeDate;


}
